package com.ghck.server.model;

import java.util.Date;
/**
 * 健康自测类型-试卷  <br>
 * dict_test_category <br>
 * v1.0 2016-05-01
 */
 public class TestCategoryDict extends BaseModel implements Comparable<TestCategoryDict>{
	
	private static final long serialVersionUID = 1L;
 	
 	//id
	private Integer id;

 	//名称
 	//name
	private String name;

 	//父ID
 	//parent_id
	private Integer parentId;

 	//测量次数
 	//test_amount
	private Integer testAmount;

 	//分享次数
 	//share_amount
	private Integer shareAmount;

 	//作答时限,0表示不做限制,大于0表示毫秒数
 	//time_limit
	private Integer timeLimit;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;
	
	private Integer score;
	
	//排序
	private Integer seq;
 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;
	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*名称
 	*name
 	*/
	public String getName() {
		return name;
	}
	
	/**
	*名称
 	*name
 	*/
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	*父ID
 	*parent_id
 	*/
	public Integer getParentId() {
		return parentId;
	}
	
	/**
	*父ID
 	*parent_id
 	*/
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	
	/**
	*测量次数
 	*test_amount
 	*/
	public Integer getTestAmount() {
		return testAmount;
	}
	
	/**
	*测量次数
 	*test_amount
 	*/
	public void setTestAmount(Integer testAmount) {
		this.testAmount = testAmount;
	}
	
	/**
	*分享次数
 	*share_amount
 	*/
	public Integer getShareAmount() {
		return shareAmount;
	}
	
	/**
	*分享次数
 	*share_amount
 	*/
	public void setShareAmount(Integer shareAmount) {
		this.shareAmount = shareAmount;
	}
	
	/**
	*作答时限,0表示不做限制,大于0表示毫秒数
 	*time_limit
 	*/
	public Integer getTimeLimit() {
		return timeLimit;
	}
	
	/**
	*作答时限,0表示不做限制,大于0表示毫秒数
 	*time_limit
 	*/
	public void setTimeLimit(Integer timeLimit) {
		this.timeLimit = timeLimit;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	@Override
	public int compareTo(TestCategoryDict o) {
		if(seq!=null && o!=null && o.getSeq()!=null){
			return o.seq.compareTo(this.seq);
		}
		return 0;
	}
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	